<?php
class register {
	
	protected static $objs;

	public static function __set ($alias, $obj) {
		self::$objs[$alias] = $obj;
	}

	public static function __unset ($alias) {
		unset(self::$objs[$alias]);
	}

	public static function get ($key) {
		if(!isset(self::$objs[$key])) {
			return false;
		}
		return self::$objs[$key];
	}	

}



